package com.thinkit.bigdata.web.model.sec;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class User {
    private Long id;

    private Long groupid;

    private String username;

    private String realname;

    private String account;

    private String password;

    private String mobileno;

    private String email;

    private String note;

    private Date createtime;

    private Long createuserid;

    private Date lastupdatetime;

    private Long lastupdateuserid;

    private Date lastlogintime;

    private String lastloginip;

    private Integer isdelete;

    // 动态查询isdelete状态对应的名称 后台直接转换
    private String statusname;

    private SysGroup group;

    private String smscode;

    // 登录时图形验证码
    private String loginimgcode;

    // 密码设置时间
    private Date pswsettime;

    // 密码错误日期
    private String errorday;

    // 密码连续错误次数
    private Integer errornum;

    // 身份证号
    private String idcard;

    // 办公网出口ip
    private String workip;

    private List<SysRole> rolelist = new ArrayList<>();

    private List<Long> roleidlist = new ArrayList<>();

    // 保存某个质检员对应哪些坐席组的集合
    private List<Long> seatgroupidlist = new ArrayList<>();

    public SysGroup getGroup() {
        return group;
    }

    public void setGroup(SysGroup group) {
        this.group = group;
    }

    public List<SysRole> getRolelist() {
        return rolelist;
    }

    public void setRolelist(List<SysRole> rolelist) {
        this.rolelist = rolelist;
    }

    public List<Long> getRoleidlist() {
        return roleidlist;
    }

    public void setRoleidlist(List<Long> roleidlist) {
        this.roleidlist = roleidlist;
    }

    public List<Long> getSeatgroupidlist() {
        return seatgroupidlist;
    }

    public void setSeatgroupidlist(List<Long> seatgroupidlist) {
        this.seatgroupidlist = seatgroupidlist;
    }

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGroupid() {
        return groupid;
    }

    public void setGroupid(Long groupid) {
        this.groupid = groupid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getMobileno() {
        return mobileno;
    }

    public void setMobileno(String mobileno) {
        this.mobileno = mobileno == null ? null : mobileno.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getCreateuserid() {
        return createuserid;
    }

    public void setCreateuserid(Long createuserid) {
        this.createuserid = createuserid;
    }

    public Date getLastupdatetime() {
        return lastupdatetime;
    }

    public void setLastupdatetime(Date lastupdatetime) {
        this.lastupdatetime = lastupdatetime;
    }

    public Long getLastupdateuserid() {
        return lastupdateuserid;
    }

    public void setLastupdateuserid(Long lastupdateuserid) {
        this.lastupdateuserid = lastupdateuserid;
    }

    public Date getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(Date lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public String getLastloginip() {
        return lastloginip;
    }

    public void setLastloginip(String lastloginip) {
        this.lastloginip = lastloginip == null ? null : lastloginip.trim();
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public String getStatusname() {
        return statusname;
    }

    public void setStatusname(String statusname) {
        this.statusname = statusname;
    }

    public String getSmscode() {
        return smscode;
    }

    public void setSmscode(String smscode) {
        this.smscode = smscode;
    }

    public String getLoginimgcode() {
        return loginimgcode;
    }

    public void setLoginimgcode(String loginimgcode) {
        this.loginimgcode = loginimgcode;
    }

    public Date getPswsettime() {
        return pswsettime;
    }

    public void setPswsettime(Date pswsettime) {
        this.pswsettime = pswsettime;
    }

    public String getErrorday() {
        return errorday;
    }

    public void setErrorday(String errorday) {
        this.errorday = errorday;
    }

    public Integer getErrornum() {
        return errornum;
    }

    public void setErrornum(Integer errornum) {
        this.errornum = errornum;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getWorkip() {
        return workip;
    }

    public void setWorkip(String workip) {
        this.workip = workip;
    }

    @Override
    public String toString() {
        return "user{username='" + getUsername() + "', realname='" + getRealname() + "', account='" + getAccount() + "'}";
    }
}